package com.guoyansoft.model.pojo;

import java.io.Serializable;

/**
 * @author 常利军
 * 地址实体
 */
public class Address implements Serializable {
    //主键
    private Integer id;
    //省
    private String province;
    //市
    private String city;
    //区
    private String district;
    //详细地址
    private String detailedAddress;
    //备注
    private String remark;

    public Address() {
    }

    public Address(Integer id, String province, String city, String district, String detailedAddress) {
        this.id = id;
        this.province = province;
        this.city = city;
        this.district = district;
        this.detailedAddress = detailedAddress;
    }

    public Address(String province, String city, String district, String detailedAddress) {
        this.province = province;
        this.city = city;
        this.district = district;
        this.detailedAddress = detailedAddress;
    }

    public Address(String district) {
        this.district = district;
    }

    public Address(Integer id, String province, String city, String district, String detailedAddress, String remark) {
        this.id = id;
        this.province = province;
        this.city = city;
        this.district = district;
        this.detailedAddress = detailedAddress;
        this.remark = remark;
    }

    public Address(Integer id, String district) {
        this.id = id;
        this.district = district;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", detailedAddress='" + detailedAddress + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
